import service from '@/utils/request'

// @Tags ArchiveType
// @Summary 创建档案类型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveType true "创建档案类型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /archiveType/createArchiveType [post]
export const createArchiveType = (data) => {
  return service({
    url: '/archiveType/createArchiveType',
    method: 'post',
    data
  })
}

// @Tags ArchiveType
// @Summary 删除档案类型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveType true "删除档案类型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /archiveType/deleteArchiveType [delete]
export const deleteArchiveType = (params) => {
  return service({
    url: '/archiveType/deleteArchiveType',
    method: 'delete',
    params
  })
}

// @Tags ArchiveType
// @Summary 批量删除档案类型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除档案类型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /archiveType/deleteArchiveType [delete]
export const deleteArchiveTypeByIds = (params) => {
  return service({
    url: '/archiveType/deleteArchiveTypeByIds',
    method: 'delete',
    params
  })
}

// @Tags ArchiveType
// @Summary 更新档案类型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArchiveType true "更新档案类型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /archiveType/updateArchiveType [put]
export const updateArchiveType = (data) => {
  return service({
    url: '/archiveType/updateArchiveType',
    method: 'put',
    data
  })
}

// @Tags ArchiveType
// @Summary 用id查询档案类型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ArchiveType true "用id查询档案类型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /archiveType/findArchiveType [get]
export const findArchiveType = (params) => {
  return service({
    url: '/archiveType/findArchiveType',
    method: 'get',
    params
  })
}

// @Tags ArchiveType
// @Summary 分页获取档案类型列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取档案类型列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /archiveType/getArchiveTypeList [get]
export const getArchiveTypeList = (params) => {
  return service({
    url: '/archiveType/getArchiveTypeList',
    method: 'get',
    params
  })
}
